Hour

Definition:

Hour(date)

 

Description:

Return the hour value from a supplied time string.

 

Platforms:

All

 

Parameters:

date - required

String containing the date, date and time or time.

Supported formats for this parameter are the same as those supported by VBScript DateTime objects.

 

Returns:

int

The hour value from the supplied time string, between 0 and 23.

 

Notes:

If you specify a date without a time in the date parameter, the time will be assumed to be 00:00:00.

If you want to use the current date and time, you can use the Now Method to obtain this in a suitable format for use within this Method.